package com.conferenceroom.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("orders")
public class refundOrder {
    @TableId(value = "order_id", type =  IdType.AUTO)
    private Integer orderId;
    private Integer userId;
    private Integer roomId;
    private Date startTime; // 预订开始时间(精确到小时)
    private Date endTime; // 预订结束时间(精确到小时)
    // 创建时间，插入时自动填充
    @TableField(fill = FieldFill.INSERT)
    private Date createTime; // 订单创建时间
    private Date cancelTime; // 订单取消时间
    //private Integer status; // 1=有效，2=无效
    private Integer paymentStatus; // 0=已预约，1=已支付，2=退款，3=超时未支付订单失效, 4=退款待审核
    private Integer totalFee; // 订单总金额
    private Integer refundFee; // 退款金额
    private String username;
    private String realName;
    private String company;
    private String phone;

}